package com.cskaoyan.mall.bean.vo;

import com.cskaoyan.mall.bean.Role;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Zsp
 * 2021/1/10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminOptionVO {
    private int value;
    private String label;

    public AdminOptionVO(Role role) {
        value = role.getId();
        label = role.getName();
    }
}
